<?php

namespace App\Models;


class AgentWithdrawAccountReg extends Base
{

    protected $table = 'agent_withdraw_account_reg';

    /**
     * 状态: 待审核
     */
    const STATUS_PENDING = 1;

    /**
     * 状态: 成功
     */
    const STATUS_SUCCESS = 2;

    /**
     * 状态: 失败
     */
    const STATUS_FAIL = 3;

    const STATUS_MAP = [
        self::STATUS_PENDING => '进行中',
        self::STATUS_SUCCESS => '成功',
        self::STATUS_FAIL => '失败'
    ];

    public function agent()
    {
        return $this->belongsTo(Agent::class);
    }
}
